:root {
    --primary-blue-hover: #2c69af;
    --primary-blue-dark: #15467a;
    --accent-yellow-dark: #f4b02a;
    --success-green: #198754;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #fcfcfc;
    --text-main: #333333;
    --text-muted: #666666;
    --border-light: #eeeeee;
    --nav-bg-scrolled: rgba(248, 249, 250, 0.8);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --primary-blue: #00529B;
    --accent-yellow: #FFD700;
    --light-green: #4ECDC4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#scrollBtn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    border: 2px solid transparent;
    z-index: 100;
}

#scrollBtn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(270deg,
            var(--accent-yellow),
            var(--success-green),
            var(--accent-yellow));
    background-size: 400% 400%;
    z-index: -1;
    animation: borderMove 4s linear infinite;
}

#scrollBtn::after {
    content: "";
    position: absolute;
    background: var(--primary-blue);
    width: 53px;
    height: 53px;
    border-radius: 14px;
}

#scrollBtn i {
    z-index: 1;
}

@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

#scrollBtn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-navbar {
    background: var(--bg-light);
    padding: 8px 0;
    transition: all 0.4s ease-in-out;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(3px);
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-box img {
    width: 55px;
    border-radius: 50%;
}

.nav-link {
    color: var(--text-main) !important;
    position: relative;
    margin: 0 10px;
    padding-bottom: 5px;
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-container {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu-custom li a:hover {
    color: var(--primary-blue);
}

.dropdown-container:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apply-btn {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.apply-btn:hover {
    background: var(--primary-blue-hover);
    color: var(--white);
    transform: scale(1.1);
}

.add-event-btn {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: none;
}

.add-event-btn:hover {
    background: var(--accent-yellow-dark);
    color: var(--primary-blue-dark);
    transform: scale(1.05);
}

.menu-btn {
    font-size: 28px;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-blue);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    padding: 80px 20px 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.side-menu a {
    display: block;
    color: var(--white);
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: border-left 0.3s ease-in;
}

.side-menu div {
    margin-top: -32px;
}

.side-menu span {
    font-size: 20px;
    color: var(--bg-section);
}

.side-menu a:hover {
    border-left: 3px solid var(--border-light);
}

.side-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: -1;
}

.side-menu.open::before {
    opacity: 1;
    visibility: visible;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-submenu.open {
    max-height: 200px;
}

.mobile-submenu a {
    padding-left: 50px !important;
    font-size: 0.95rem !important;
}

.side-nav-dropdown {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem !important;
}

.side-nav-dropdown.active i.fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.about-hero {
    background: var(--primary-blue);
    color: white;
    min-height: 110vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-hero .container {
    margin-top: 100px;
}

.bv-about {
    font-size: 50px;
    font-weight: 600;
}

.typing {
    position: relative;
    font-size: 50px;
    font-weight: 600;
}

.typing::before {
    content: "School";
    color: white;
    animation: words 20s infinite;
}

.typing::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: var(--primary-blue);
    border-left: 2px solid var(--accent-yellow);
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid transparent;
    }
}

@keyframes words {

    0%,
    19% {
        content: "School";
    }

    20%,
    39% {
        content: "Students";
    }

    60%,
    79% {
        content: "Opportunities";
    }

    80%,
    100% {
        content: "Achievements";
    }
}

@keyframes typing {

    0%,
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%,
    100% {
        width: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.principal-container {
    text-align: center;
}

.principal-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border: 12px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease;
}

.principal-img:hover {
    transform: scale(1.05);
}

.principal-name {
    margin-top: 20px;
    font-size: 1.65rem;
    font-weight: 600;
    color: white;
}

.principal-title {
    font-size: 1.15rem;
    opacity: 0.9;
    color: #ddd;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-blue);
    transition: left 0.4s ease;
    z-index: 9999;
    padding: 90px 20px 20px;
}

.side-menu a {
    display: block;
    color: white;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1.1rem;
}

.scrollBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.scrollBtn.show {
    display: flex;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--light-green);
    bottom: -10px;
    left: 0;
}

.story-container {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
}

.story-content,
.story-image {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease-out;
}

.story-content.visible,
.story-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-image img {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.6s ease;
}

.story-image:hover img {
    transform: scale(1.06);
}

.highlight-box {
    background: white;
    border-left: 6px solid var(--light-green);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.lead {
    font-size: 1.15rem;
}

.header {
    text-align: center;
    margin-bottom: 45px;
}

.bv-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #2c2533;
    letter-spacing: -1px;
    margin-top: 50px;
}

.bv-subtitle {
    font-size: 1.35rem;
    color: #6b5c7e;
}

.bv-gallery-container {
    position: relative;
    max-width: 1300px;
    height: 520px;
    margin: 0 auto;
    perspective: 2200px;
    display: none;
}

.bv-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 245px;
    height: 370px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.3);
    border: 9px solid rgba(255, 255, 255, 0.7);
    background: #fff;
    transition: all 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bv-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bv-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 5;
}

.bv-card-title {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.bv-card-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.95;
}

.bv-card-left2 {
    transform: translate(-50%, -52%) rotate(-28deg) scale(0.78) translateX(-310px) translateY(15px);
    z-index: 1;
}

.bv-card-left1 {
    transform: translate(-50%, -52%) rotate(-13deg) scale(0.88) translateX(-155px) translateY(8px);
    z-index: 2;
}

.bv-card-center {
    transform: translate(-50%, -55%) scale(1.23);
    z-index: 10;
    filter: none !important;
    box-shadow: 0 40px 80px -20px rgba(92, 74, 158, 0.45);
}

.bv-card-right1 {
    transform: translate(-50%, -52%) rotate(13deg) scale(0.88) translateX(155px) translateY(8px);
    z-index: 2;
}

.bv-card-right2 {
    transform: translate(-50%, -52%) rotate(28deg) scale(0.78) translateX(310px) translateY(15px);
    z-index: 1;
}

.bv-nav-btn {
    width: 60px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 5%;
    font-size: 28px;
    color: #5c4a9e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 30;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bv-center {
    margin-top: -15rem;
    display: flex;
    justify-content: space-between;

}

.bv-nav-btn:hover {
    background: white;
}

.bv-slider-container {
    display: none;
    max-width: 100%;
    padding: 20px 0 90px;
}

.bv-gallery-slider-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bv-gallery-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    gap: 15px;
}

.bv-gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 420px;
}

.bv-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bv-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bv-gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.bv-gallery-desc {
    font-size: 0.92rem;
    opacity: 0.95;
    line-height: 1.4;
}

.bv-gallery-slider::-webkit-scrollbar {
    display: none;
}

.core-values-section {
    padding: 80px 0;
    margin-top: 12rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a3c6e;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 60px;
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 40px 25px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #e6f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-circle i {
    font-size: 36px;
    color: #1a3c6e;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a3c6e;
    margin-bottom: 15px;
}

.value-description {
    color: #666;
    line-height: 1.6;
}

.bv-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 30px;
    margin-top: 2rem;
}

.bv-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.bv-logo {
    background: var(--primary-blue);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.bv-footer-heading {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.bv-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.bv-footer-link:hover {
    color: #60a5fa;
}

.bv-contact-info i {
    width: 20px;
    margin-right: 10px;
}

.bv-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.bv-social-icons a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-4px);
}

.bv-end{
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bv-footer-bottom {
    padding-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
}

.bv-footer-bottom a{
    color: #94a3b8;
    text-decoration: none;
}

@media (min-width: 992px) {
    .bv-gallery-container {
        display: block;
    }

    .bv-slider-container {
        display: none;
    }

    .bv-nav-btn {
        top: 50%;
        transform: translateY(-50%);
    }

    .bv-nav-btn.left {
        left: 20px;
    }

    .bv-nav-btn.right {
        right: 20px;
    }
}

@media (max-width: 991px) {
    .bv-gallery-container {
        display: none;
    }

    .bv-slider-container {
        display: block;
    }

    .bv-nav-btn.left,
    .bv-nav-btn.right {
        display: none;
    }
}